package co.salehi.domain;

import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity
public class BatteryMake {

	@NotNull
    private String name;
    
    @NotNull
    @ManyToOne
    private Country country;
    
    public String toString() {
        return name + "[" + country + "]";
    }
}
